from machine import Pin,I2C,ADC,Timer
from lib import *

adc = ADC(18)

def ADC_Test(tim):
    fill(display, 0, 0, 35, 10, fill=0)
    icodate(display, str(adc.read()), 0, 0, fill=1)
    display.show()

tim = Timer(-1)
tim.init(period=300, mode=Timer.PERIODIC, callback=ADC_Test)

